//
//  WZGProtocolListCell.m
//  ZCJZ
//
//  Created by sujeking on 2019/12/23.
//  Copyright © 2019 jeking. All rights reserved.
//

#import "WZGProtocolListCell.h"
#import "TBCityIconFont.h"
@interface WZGProtocolListCell()

@property (nonatomic, strong) UILabel *titleLabel;
@property (nonatomic, strong) UIImageView *tipimv;
@property (nonatomic, strong) UIImageView *iconImv;
@end

@implementation WZGProtocolListCell

- (instancetype)initWithFlex:(NSString *)flexName reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithFlex:flexName reuseIdentifier:reuseIdentifier];
    if (self) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        [self setupSubViews];
    }
    return self;
}

- (void)setupSubViews {
    UIImage *img = [UIImage iconWithInfo:TBCityIconInfoMake(@"\U0000e6cd", 25, [generalToolBox getColorWithHexadecimalColorStr:@"0x333333"])];
    self.tipimv.image = img;
  
  UIImage *icon = [UIImage iconWithInfo:TBCityIconInfoMake(@"\U0000e718", 40, [generalToolBox getColorWithHexadecimalColorStr:@"0x333333"])];
  self.iconImv.image = icon;

  
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}


- (void)setDict:(NSDictionary *)dict {
    if (dict == nil) {
        return;
    }
    _dict = dict;
    self.titleLabel.text = [dict valueForKey:@"protocol_name"];
}

@end
